home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MATHS / PLPLOT / PLPLOT.ZIP / include / pmdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-21  |  1.8 KB  |  85 lines

  1. /* $Id: pmdefs.h,v 1.1 1992/05/20 21:33:45 furnish Exp $
  2.    $Log: pmdefs.h,v $
  3.  * Revision 1.1  1992/05/20  21:33:45  furnish
  4.  * Initial checkin of the whole PLPLOT project.
  5.  *
  6. */
  7.  
  8. /*
  9.     pmdefs.h
  10.     Geoffrey Furnish
  11.     22 September 1991
  12.     
  13.     This file contains definitions of constants and structures which
  14.     are need by the PLPLOT 
  15.  
  16.     metafile writer and renderer.
  17.  
  18.     25 March 1992
  19.     VERSION 1.0
  20. */
  21.  
  22. /* Symbolic constants needed in this file.
  23.    Probably best to not exceed 32767 with these two. 
  24.    WARNING: If you change these, it will affect how old metafiles are
  25.    plotted, so be careful. */
  26.  
  27. #define PLMETA_X    10000
  28. #define PLMETA_Y    10000
  29.  
  30. /* These numbers are supposed to be in dots/mm.  Since I am using a very
  31.    large virtual display space, these need to be pretty big. */
  32.  
  33. #define PIXEL_RES_X    42
  34. #define PIXEL_RES_Y    56
  35.  
  36.  
  37. /* Structures and such for specifying the available commands. */
  38.  
  39. typedef int COMMAND;    /* Use for commands without paramaters. */
  40. #define UCHAR unsigned char
  41.  
  42. /* 
  43.     The available commands are ...
  44.  
  45.     *** NOTICE !!! ***
  46.     If you change ANY of the following, you will wreck backward
  47.     compatibility with old metafiles.  You may add, but do
  48.     NOT delete !!!
  49. */
  50.  
  51. #define INITIALIZE 1
  52. #define CLOSE 2
  53. #define SWITCH_TO_TEXT 3
  54. #define SWITCH_TO_GRAPH 4
  55. #define CLEAR 5
  56. #define PAGE 6
  57. #define NEW_COLOR 7
  58. #define NEW_WIDTH 8
  59. #define LINE 9
  60. #define LINETO 10
  61. #define ESCAPE 11
  62. #define ESC_NOOP 12
  63. #define ESC_RGB 13
  64.  
  65. #define    STACKSIZE 8192
  66.  
  67. #define PIPE_BUFFER_SIZE    1000
  68. #define PIPE_NAME    "\\pipe\\pmplplot"
  69.  
  70. typedef struct {
  71.     PLINT a;
  72. } PMSTUFF;
  73.  
  74. /*
  75.     The following are various things needed to get my resources
  76.     to work correctly with pmserv.
  77. */
  78.  
  79. #define ID_RESOURCE 1
  80.  
  81. #define IDM_ADVANCE    1
  82. #define IDM_CONTROLS    2
  83.  
  84. #define IDM_AUTO_ADVANCE    20
  85.